package net.luoran.dvm.service.impl;

import net.luoran.dvm.entity.PanelDO;
import net.luoran.dvm.mapper.PanelMapper;
import net.luoran.dvm.service.PanelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.awt.*;

/**
 * <p>
 * 数据大屏 服务实现类
 * </p>
 *
 * @author MyBatisPlusGenerater
 * @since 2020-10-29
 */
@Service
@Transactional
public class PanelServiceImpl extends ServiceImpl<PanelMapper, PanelDO> implements PanelService {
    @Autowired
    private  PanelMapper panelMapper;
    @Override
    public void removeByPanelId(Integer id) {
        panelMapper.deleteById(id);
    }

    @Override
    public void savePanel(PanelDO panelDO) {
        panelMapper.insert(panelDO);
    }

    @Override
    public void updatePanel(PanelDO panelDO) {
        panelMapper.updateById(panelDO);
    }
}
